import Vue from 'vue'

export const state = Vue.observable({
  count: 0,
  vanLoadingIsShow: false,
  user_id: 2353392849,
  geohash: '31.244523 121.422331'
})

// state.count
// 数据共享

export const mutations = {
  setCount (value) {
    state.count = value
  },
  plus () {
    ++state.count
  },
  showLoading () {
    state.vanLoadingIsShow = true
  },
  hideLoading () {
    state.vanLoadingIsShow = false
  }
}
